package com.webservice;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.util.Map;

@WebService(targetNamespace = "http://39.98.59.6/mmms_test/ws/statistics")
public interface StatisticsWebService {

    /**
     * 设备的总维修费用
     * @param equipment_id
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfEquipment(@WebParam(name = "equipment_id")Integer equipment_id);


    /**
     * 装备部门的总维修费用
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfEquip();

    /**
     * 设备某年的维修费用
     * @param equipment_id
     * @param year
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfEquipmentYear(@WebParam(name = "equipment_id")Integer equipment_id,
                                                 @WebParam(name = "year")String year);

    /**
     * 装备部门某年的维修费用
     * @param year
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfEquipYear(@WebParam(name = "year")String year);

    /**
     * 设备某年的维修次数
     * @param equipment_id
     * @param year
     * @return
     */
    @WebResult(name = "integer")
    public Integer maintenanceTimesOfEquipmentYear(@WebParam(name = "equipment_id")Integer equipment_id,
                                                   @WebParam(name = "year")String year);

    /**
     * 装备部门某年的维修次数
     * @param year
     * @return
     */
    @WebResult(name = "integer")
    public Integer maintenanceTimesOfEquipYear(@WebParam(name = "year")String year);

    /**
     * 单位的总维修费用
     * @param insiderUnit_id
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfInsiderUnit(@WebParam(name = "insiderUnit_id")Integer insiderUnit_id);

    /**
     * 单位某年的维修费用
     * @param insiderUnit_id
     * @param year
     * @return
     */
    @WebResult(name = "float")
    public Float maintenancePriceOfInsiderUnitYear(@WebParam(name = "insiderUnit_id")Integer insiderUnit_id,
                                                   @WebParam(name = "year")String year);

    /**
     * 总维修次数和费用
     * @param
     * @return
     */
    @WebResult(name = "string")
    public String maintenancePriceOfMaintenanceUnit();

    /**
     * 某年的总维修次数和费用
     * @param
     * @param year
     * @return
     */
    @WebResult(name = "string")
    public String maintenancePriceOfMaintenanceUnitYear(@WebParam(name = "year")String year);

    /**
     * 某年的总维修费用和次数
     * @param year
     * @return
     */
    @WebResult(name = "string")
    public String maintenancePriceAndTimes(@WebParam(name = "year")String year);


}
